package commands;

import model.Engine;

/**
 * Commande destinee a diminuer le nombre de temps par mesure du moteur du metronome.
 */
public class ControllerToEngineDecTPBCommand implements Command {

	private Engine engine;
	
	public ControllerToEngineDecTPBCommand(Engine engine) {
		this.engine = engine;
	}
	
	@Override
	public void execute() {
		engine.setTimesPerBar(engine.getTimesPerBar() - 1);
	}
	
}
